Mark webhook-channel configs as encrypted#950
Mark webhook-channel configs as encrypted#950TomasLongo wants to merge 3 commits intoopensearch-project:mainfrom
Conversation
Signed-off-by: Tomas Longo <tlongo@sternad.de>
PR Reviewer Guide 🔍(Review updated until commit c764168)Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Latest suggestions up to c764168
Previous suggestionsSuggestions up to commit 4fe3b64
|
Check for prefix instead. Signed-off-by: Tomas Longo <tlongo@sternad.de>
PR Code Analyzer ❗AI-powered 'Code-Diff-Analyzer' found issues on commit fd075d2.
The table above displays the top 10 most important findings. Pull Requests Author(s): Please update your Pull Request according to the report above. Repository Maintainer(s): You can Thanks. |
|
Persistent review updated to latest commit c764168 |
|
Addressing the security issue raised by the AI-Review: If this change is read in isolation, it is right. However, the change in the notifications-plugin uses the AES-256-GCM algorithm which checks if the encrypted ur was manipulated. Decryption would fail if the content after Since the current change is mainly driven by creating backwarcompatibility with not encrypted webhook urls, the alternative approach mentioned in the PR description might be worth considering to create a tailored mechanic for encrypted webhook-urls. |
Signed-off-by: Tomas Longo <tlongo@sternad.de>
Mark webhook-channel configs as encrypted
This PR supports the effort to encrypt notification channel configurations in the OpenSearch Notification-Plugin.
It checks if the url for a webhook channel is encrypted and skips url-validation if this is the case.
Caveats
This introduces external knowledge into the utility project (How encrypted urls are prefixed). An alternative would be, creating dedicated types for encrypted webhook configs inside the notification project.
Related Issues
Resolves #[Issue number to be closed when this PR is merged]
Check List
--signoff.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.